package com.zhuidian.mothernote.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.base.adapter.BaseRecyclerAdapter;
import com.base.view.FullGridView;
import com.zhuidian.mothernote.R;


public class LabelAdapter extends BaseRecyclerAdapter<String> {

    public LabelAdapter(Context context) {
        super(context);
    }

    @Override
    protected RecyclerView.ViewHolder onCreateItemViewHolder(ViewGroup parent) {
        return new LabelAdapter.MyViewHolder(inflate(R.layout.adapter_label));
    }


    public class MyViewHolder extends ItemViewHolder {
        private TextView tv_topic;
        private FullGridView fullGridView;
        private NextTopicLabelAdapter nextTopicLabelAdapter;

        public MyViewHolder(View view) {
            super(view);
            tv_topic = (TextView) view.findViewById(R.id.tv_topic);
            fullGridView = (FullGridView) view.findViewById(R.id.fullGridView);
            nextTopicLabelAdapter = new NextTopicLabelAdapter(context);
            fullGridView.setAdapter(nextTopicLabelAdapter);
        }

        @Override
        protected void setListener(int position) {

        }

        @Override
        protected void initValue(int position, String string) {

        }
    }

}

